
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class OptionBO : Csla.BusinessBase<OptionBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in OptionBO
			//AuthorizationRules.AllowRead(OptionIDProperty, "OptionBOReadGroup");
			//AuthorizationRules.AllowRead(OptionNameProperty, "OptionBOReadGroup");
			//AuthorizationRules.AllowRead(OptionValueProperty, "OptionBOReadGroup");

			//AuthorizationRules.AllowWrite(OptionNameProperty, "OptionBOWriteGroup");
			//AuthorizationRules.AllowWrite(OptionValueProperty, "OptionBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of OptionBO
			//AuthorizationRules.AllowCreate(typeof(OptionBO), "OptionBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(OptionBO), "OptionBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(OptionBO), "OptionBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Option data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
